<?php

use think\migration\Migrator;
use think\migration\db\Column;

class AlterCouponOrderAddExtensionType extends Migrator
{
    public function up()
    {
        $this->table('coupon_order')
            ->addColumn('extension_type', 'integer', ['limit' => 11, 'default' => 0, 'comment' => '推广类型用于我的推广统计标记'])
            ->save();


    }

    public function down()
    {
        $this->table('coupon_order')->removeColumn('extension_type');
    }
}
